amd iommu: Compress hyper-transport flags into a single byte
authorWei Wang <wei.wang2@amd.com>
Fri, 11 Nov 2011 11:05:14 +0000 (12:05 +0100)
committerWei Wang <wei.wang2@amd.com>
Fri, 11 Nov 2011 11:05:14 +0000 (12:05 +0100)
commit05498eaf28ff183dce5b7bad9f8643ba5032a0d2
tree500bf2e25713360beab271ba3c2f20b544cd6324
parentc909d6094903ece47036cb79e13ed618e5738a11
amd iommu: Compress hyper-transport flags into a single byte

These flags are single bit, no need to be saved as integers.
Add 3 inline helpers to make single bit access easier.
Introduce iommu_has_ht_flag and set_iommu_ht_flags

Signed-off-by: Wei Wang <wei.wang2@amd.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/amd/iommu_detect.c
xen/drivers/passthrough/amd/iommu_init.c
xen/include/asm-x86/amd-iommu.h
xen/include/asm-x86/hvm/svm/amd-iommu-proto.h